import React, { Component } from 'react'

export default class Details extends Component {
    render() {
        let arr = [
            { id: 1, content: "小姐姐" },
            { id: 2, content: "少妇" },
            { id: 3, content: "贵妇" },
        ]
        const { id, title } = this.props.match.params;
        let obj = arr.find(item => item.id == id) || {}
        return (
            <div>
                <ul>
                    <li>id:{id}</li>
                    <li>title:{title}</li>
                    <li>content:{obj.content}</li>
                </ul>
            </div>
        )
    }
}
